package com.yanjue.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yanjue.common.entity.BookChapter;
import com.yanjue.common.util.Result;
import com.yanjue.vo.BookChapterReadVO;

/**
* @author yanju
* @description 针对表【book_chapter】的数据库操作Service
* @createDate 2025-01-16 12:33:44
*/
public interface BookChapterService extends IService<BookChapter> {

    /**
     * 查询图书章节列表信息
     * @param bookId
     * @return
     */
    Result getBookChapterListByBookId(String bookId);

    /**
     * 阅读章节
     * @param bookId
     * @param chapterId 章节ID(0获取首章节，-1获取末章节)
     * @return
     */
    Result<BookChapterReadVO> readChapter(String bookId, Integer chapterId);
}
